home *** CD-ROM | disk | FTP | other *** search
- SEARCH and REPLACE using SEARCH LIST
- ==================================================================
- K. Th. Hell (C)
- In short:
- SEARCH+REPLACE with SEARCH LIST is simple to use and very powerfull
- but unfortunately needs a lot of TIME, so ran it during coffee break
- and always use the hard disk (best with CACHE and sufficient MEMORY).
- You may SEARCH for an almost UNLIMITED NUMBER of SEARCH STRINGS
- (up to 40 characters each) SIMULTANEOUSLY - again and again!
-
- FUNCTION:
- SEARCH is carried out by looking for the first 40 characters
- (line POSITION 1-40) on each line.
- Leading SPACES are considered, trailing SPACES only, if the END
- of the SEARCH STRING is specially marked with an asigned CODE.
- When searching for SPACES you should always choose the option
- "SIMULATE missing SPACES" because at the beginning of a line there
- might be NO leading SPACE, and also at the end of the line often
- there are NO trailing SPACES!
- Furthermore, <TAB> and CODE 255 might look like SPACES but are NOT!
-
- The REPLACEMENT STRING is on the same LINE starting at POSITION 41.
- If the REPLACEMENT STRING is MISSING, then, the SEARCH STRING
- will be DELETED when found!
-
- CODES 10, 13 and 26 can't be used in the SEARCH LIST.
- Other CODES < 32 call for CAUTION!
- LINES beginning with "REM " are disregarded.
-
- IMPORTANT:
- SEARCH+REPLACE with LIST can be carried out AUTOMATICALLY
- at the COMMAND LINE or with a BATCH FILE:
-
- SYNTAX:
- ASCIIPRO.EXE SEARCH.LST SEARCH.TXT RESULT.ASC [CODE Y|N Y|N CONDITION]
-
- COMPULSARY PARAMETERS:
- ASCIIPRO.EXE : PROGRAM NAME of <ASCII-PRO> (± DRIVE:\/PATH)
- SEARCH .LST : FILE NAME of SEARCH LIST (± DRIVE:\PATH)
- SEARCH .TXT : FILE NAME where to SEARCH (± DRIVE:\PATH)
- RESULT .ASC : FILE NAME for RESULT of SEARCH (± DRIVE:\PATH)
-
- FACULTATIVE PARAMETERS:
- CODE : CODE (1-255) used in SEARCH LIST as MARK for trailing SPACES
- J|N : "Y" to distinguish between UPPER and lower case.
- J|N : "Y" for the option "SIMULATE missing SPACES".
- CONDITION : TEXT or MARK which must be found in the PREVIOUS LINE
- in order to execute REPLACEMENT.
-
- Separate the parameters with ONE space.
- Maximum length of COMMANDO line ist 126 characters.
-
- To get to know the function, first execute it MENU DRIVEN!
-
- For more details, please check the SAMPLE FILE "SEARCH.LST".
-
- *******************************************************************************
-